home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 10 / CU Amiga Magazine's Super CD-ROM 10 (1997-03-15)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-05][50887 CUAM10].iso / CUCD / Graphics / WildFire / WildFireFPU / Bonus / DragGadget.lha / dragclass / draggadget.h < prev    next >
C/C++ Source or Header  |  1996-12-24  |  2KB  |  66 lines

  1. #ifndef GADGETS_DRAGGADGET_H
  2. #define GADGETS_DRAGGADGET_H TRUE
  3. /*
  4. **  $VER: draggadget.h 0.2 (21.4.96)
  5. **
  6. **  Definitions for BOOPSI draggadget objects
  7. **
  8. **  (c) Copyright 1996 Joerg Kollmann
  9. **  All Rights Reserved
  10. **
  11. */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifndef EXEC_LIBRARIES_H
  18. #include <exec/libraries.h>
  19. #endif
  20.  
  21. #ifndef INTUITION_CLASSUSR_H
  22. #include <intuition/classusr.h>
  23. #endif
  24.  
  25. #ifndef INTUITION_INTUITION_H
  26. #include <intuition/intuition.h>
  27. #endif
  28.  
  29. #ifndef UTILITY_TAGITEM_H
  30. #include <utility/tagitem.h>
  31. #endif
  32.  
  33. /*********************************************************************/
  34.  
  35. struct DragInfo {
  36.   WORD            type;       /* still unused */
  37.   APTR            reserved1;
  38.   struct {
  39.     WORD          X;          /* rel. to RastPort of gadget */
  40.     WORD          Y;
  41.   } mouse;
  42.   APTR            reserved2;
  43. };
  44.  
  45. /*****************************************************************************/
  46.  
  47. #define DGA_Dummy   (TAG_USER+0x5000000)
  48.  
  49. #define DGA_ExtSelect   (DGA_Dummy+1)  /* BOOL, default FALSE, Applicability: (I)
  50.         * with this attribute set to TRUE, the gadget image stays selected
  51.         * after dropping. */
  52.  
  53. #define DGA_Screen      (DGA_Dummy+3)  /* Screen/Window of Dragobject, mutually */
  54. #define DGA_Window      (DGA_Dummy+4)  /* exclusive. Applicability: (I) */
  55.  
  56. /*****************************************************************************/
  57.  
  58. struct DClassLibrary {
  59.   struct Library    dcl_Lib;
  60.   UWORD             dcl_Pad;
  61.   struct IClass    *dcl_DragClass;    /* Class pointer for draggadget objects */
  62.   struct IClass    *dcl_DragGroup;    /* unused for now */
  63. };
  64.  
  65. #endif /* GADGETS_DRAGGADGET_H */
  66.